package BPGUI;

import java.awt.BorderLayout;
import java.util.Observable;
import java.util.Observer;

import javax.swing.JFrame;

/**
 * Provides the basic frame of the GUI.
 * 
 * @author Sean
 *
 */
public class BPFrame extends JFrame implements Observer {

	private static final int MY_MIN_HEIGHT = 600;
	
	private static final int MY_MIN_WIDTH = 850;
	
	private int my_starting_height;
	
	private int my_starting_width;
	
	public BPFrame(final int h, final int w) {
		super("Burning Penguins Conference Manager");
		this.setSize(w, h);
		this.setLayout(new BorderLayout());
		this.add(new BPContentPage(), BorderLayout.CENTER);
	}
	
	public BPFrame() {
		this(MY_MIN_HEIGHT, MY_MIN_WIDTH);
	}
	
	@Override
	public void update(Observable arg0, Object arg1) {
		// TODO Auto-generated method stub

	}

	/**
	 * @param args
	 */
	@SuppressWarnings("deprecation")
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		BPFrame frame = new BPFrame();
		frame.show();
		
	}

}
